#include "e2d/imgui/render/Editor.h"

bool e2d::render::Editor::TryTreeEditEntity(e2d::Entity* entity)
{
    bool flag{ 0 };
    flag |= TryTreeEdit<CameraView>(entity);
    flag |= TryTreeEdit<CameraViewEdit>(entity);
    flag |= TryTreeEdit<LightSource>(entity);
    flag |= TryTreeEdit<FixedMeshRender>(entity);
    flag |= TryTreeEdit<SkinnedMeshRender>(entity);
    flag |= TryTreeEdit<ImageQuad>(entity);
    flag |= TryTreeEdit<Texts>(entity);
    flag |= TryTreeEdit<LightEnv>(entity);
    flag |= TryTreeEdit<SkyboxView>(entity);
    return flag;
}
